package studentdemo.modul;

public class Major {
    private String mno;
    private String mname;

    public Major() {}

    public Major(String mno, String mname) {
        this.mno = mno;
        this.mname = mname;
    }

    public String getMno() { return mno; }
    public void setMno(String mno) { this.mno = mno; }
    public String getMname() { return mname; }
    public void setMname(String mname) { this.mname = mname; }

    public String toString() { return mname + "(" + mno + ")"; }
} 